home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / graphics / hsa_tc.arc / HSA_GR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1987-08-11  |  3.6 KB  |  139 lines

  1. /************************************************************************/
  2. /*                                                                        */
  3. /*        H S A _ G R . H  -  Define HSA_GRAF display routines            */
  4. /*                                                                        */
  5. /************************************************************************/
  6.  
  7. /************************************************************************/
  8. /*                                                                        */
  9. /*        Copyright (c) Hardwood Software Associates, 1986                */
  10. /*                                                                        */
  11. /************************************************************************/
  12.  
  13. /*************************************************************************
  14.  *                H S A _ G R . H   E D I T   L O G 
  15.  *
  16.  * $Log:   D:/CRT/HSA_GR.H_V  $
  17.  *    
  18.  *       Rev 1.0   11 Aug 1987 11:47:42   R. Evans
  19.  *    Initial revision.
  20.  *    
  21.  ************************************************************************/
  22.  
  23. #ifndef GR_
  24. #define GR_
  25.  
  26. #ifndef HSA_ATTRIBUTES
  27. #define HSA_ATTRIBUTES
  28. #define SCR_BASE 0xB000                            /* Screen memory base address */
  29.                                                 /* Monochrome Attributes */
  30. #define SCR_NORM 0x7                            /* Normal characters */
  31. #define SCR_BOLD 0xF                            /* Bold characters */
  32. #define SCR_BLINK 0x87                            /* Blinking characters */
  33. #define SCR_REVERSE 0x70                        /* Reverse video characters */
  34. #define SCR_UNDER 1                                /* Underlined characters */
  35. #define SCR_B_B 0x8F                            /* Blinking bold characters */
  36. #define SCR_B_U 0x9                                /* Blinking underlined characters */
  37.                                                 /* Colors */
  38. #define SCR_BLACK    0x0
  39. #define SCR_BLUE    0x1
  40. #define SCR_GREEN    0x2
  41. #define SCR_CYAN    0x3
  42. #define SCR_RED        0x4
  43. #define SCR_MAGENTA    0x5
  44. #define SCR_YELLOW    0x6
  45. #define SCR_WHITE    0x7
  46.  
  47. #define SCR_INTENSE_BIT    0x08                    /* Intensty bit */
  48. #define SCR_BLINK_BIT    0x80                    /* Bold bit */
  49.                                                 /* Create attribute byte */
  50. #define MAKE_ATTR(fore,back)    (((back)<<4) | (fore))
  51.                                                 /* CRT states */
  52. #define MONOCHROME    0x7
  53. #define CGA            0x6
  54. #define EGA            0x10
  55. #endif
  56.  
  57. #ifdef LINT_ARGS
  58. int g_state (void);
  59. void g_herc (void);
  60. void g_cga_hr (void);
  61. void g_ega_hr_co (void);
  62. void g_other (int,int,int,unsigned int,int);
  63. void g_delay (int);
  64. int disp_graph (void);
  65. void disp_text();
  66. void g_loc (int *, int *);
  67. int g_r_origin (void);
  68. int g_r_point (int,int);
  69. void g_str_h (int,int, char *);
  70. void g_fill (int,int,int);
  71. void g_save (int *,int);
  72. void g_restore (int *,int);
  73. int g_origin (int);
  74. void g_bs_h (void);
  75. void g_clr (void);
  76. void g_solid (void);
  77. void g_dot (void);
  78. void g_dash (void);
  79. void g_set_line (unsigned int);
  80. void g_fore_color (int);
  81. void g_back_color (int);
  82. void g_reverse_color (void);
  83. void g_mode (int);
  84. void g_point (int,int);
  85. void g_line (int,int,int,int);
  86. void g_scale (int,int);
  87. void gs_loc (int *,int *);
  88. void gs_point (int,int);
  89. int gs_r_point (int,int);
  90. void gs_line (int,int,int,int);
  91. void gs_str_h (int,int, char *);
  92. int gs_arc (int,int,int,int,int,int,int);
  93. int g_page (int);
  94. char *g_gets (char *);
  95. #else
  96. int g_state ();
  97. void g_herc ();
  98. void g_cga_hr ();
  99. void g_ega_hr_co ();
  100. void g_other ();
  101. void g_delay ();
  102. int disp_graph ();
  103. void disp_text();
  104. void g_loc ();
  105. int g_r_origin ();
  106. int g_r_point ();
  107. void g_str_h ();
  108. void g_fill ();
  109. void g_save ();
  110. void g_restore ();
  111. int g_origin ();
  112. void g_bs_h ();
  113. void g_clr ();
  114. void g_solid ();
  115. void g_dot ();
  116. void g_dash ();
  117. void g_set_line ();
  118. void g_fore_color ();
  119. void g_back_color ();
  120. void g_reverse_color ();
  121. void g_mode ();
  122. void g_point ();
  123. void g_line ();
  124. void g_scale ();
  125. void gs_loc ();
  126. void gs_point ();
  127. int gs_r_point ();
  128. void gs_line ();
  129. void gs_str_h ();
  130. int gs_arc ();
  131. int g_page ();
  132. char *g_gets ();
  133.  
  134. #endif
  135. #endif
  136.  
  137.  
  138.  
  139.